import React, { Component } from 'react';

class App extends Component {
  state = {
    str: "千峰教育",
    obj: {
      y: 1
    },
    arr: [1, 2, 3]
  }
  render() {
    return (
      <div></div>
    );
  }

  componentDidMount () {
    const newState = Object.assign({}, this.state)
    newState.str = "千峰教育h5学院"
    console.log(newState === this.state)
  }
}

export default App;
